package com.company.cloud.company.client;

import com.company.cloud.captcha.modules.util.StringUtils;
import com.company.cloud.common.bean.BaseClientResult;
import com.company.cloud.common.constant.BaseConstant;
import com.company.cloud.common.constant.BaseReturnEnum;
import com.company.cloud.company.constant.CompanyConstant;
import com.company.cloud.company.constant.ErrorCompanyEnum;
import com.company.cloud.company.modules.api.service.CompanyCheckRemoteService;
import com.company.cloud.company.modules.app.service.CompanyAppService;
import com.company.cloud.company.modules.base.entity.CompanyInfo;
import com.company.cloud.company.modules.base.service.CompanyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Service
public class CompanyCheckRemoteServiceImpl implements CompanyCheckRemoteService {

    @Autowired
    private CompanyAppService companyAppService;

    @Override
    public BaseClientResult<String> checkCompany(String companyNo) {
         try {
             companyAppService.checkCompanyermission(companyNo);
             return BaseClientResult.success();
         }catch (Exception e){
             return BaseClientResult.error(e);
         }
    }


}
